-- GENERATED SPELL FOR [Blackrock Raider] --


function spell0_9605(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9605', 2313, 1)
end

function spell1_9605(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_9605', 579, 1)
end

function spell2_9605(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9605', 5323, 1)
end

function Sorts_9605(pUnit, Event)
local choix_sorts_9605 = math.random(0, 2)
if choix_sorts_9605 == 0 then
pUnit:RegisterEvent('spell0_9605', 1, 1)
end
if choix_sorts_9605 == 1 then
pUnit:RegisterEvent('spell1_9605', 1, 1)
end
if choix_sorts_9605 == 2 then
pUnit:RegisterEvent('spell2_9605', 1, 1)
end
end

function mob9605_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9605', math.random(1500, 3000), 1)
end

function mob9605_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9605_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9605_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9605, 1, 'mob9605_Action')
RegisterUnitEvent(9605, 2, 'mob9605_Leave')
RegisterUnitEvent(9605, 3, 'mob9605_Kill')
RegisterUnitEvent(9605, 4, 'mob9605_Die')
